﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Magic_Folder
{
    public partial class lst_Rule : UserControl
    {
        public lst_Rule()
        {
            InitializeComponent();
            comboBox1.SelectedIndex = 0;
        }

        private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
        {

            
        }

        private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {

        }

        private void comboBox3_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void line_Click(object sender, EventArgs e)
        {

        }

        private void tabPage1_Click(object sender, EventArgs e)
        {

        }

        private void panel1_Paint(object sender, PaintEventArgs e)
        {

        }

        private void txt_RuleName_Enter(object sender, EventArgs e)
        {
            if (txt_RuleName.Text == "Rulename")
            {
                txt_RuleName.Text = "";
            }
        }

        private void txt_RuleName_Leave(object sender, EventArgs e)
        {
            if (txt_RuleName.Text == "")
            {
                txt_RuleName.Text = "Rulename";
            }
        }

        private void pictureBox2_MouseEnter(object sender, EventArgs e)
        {
            pictureBox2.Image = Magic_Folder.Properties.Resources.trash_selected;

        }

        private void pictureBox2_MouseLeave(object sender, EventArgs e)
        {
            pictureBox2.Image = Magic_Folder.Properties.Resources.trash;

        }

        private void pictureBox2_MouseDown(object sender, MouseEventArgs e)
        {
            this.Parent.Controls.Remove(this);
        }

        private void panel1_Click(object sender, EventArgs e)
        {
            this.Focus();
        }

        private void dataGridView4_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }
    }
}
